import Vue from 'vue';
import Vuex from 'vuex';
import app from './modules/app';
import logs from './modules/logs';
import permission from './modules/permission';
import tagsView from './modules/tagsView';
import user from './modules/user';
import member from './modules/member';
import notice from './modules/notice';
import realTime from './modules/realTime';
import trend from './modules/trend';
import risk from './modules/risk';
import global from './modules/global';
// import flow from './modules/flow'
import getters from './getters';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    logs,
    permission,
    member,
    tagsView,
    user,
    notice,
    realTime, // 实时统计
    trend, // 数据统计
    // flow,//流量统计
    risk,
    global,

  },
  getters,
});

export default store;
